import ajax from '@/utils/request.js'

// 体系计划
export function getPlanList(data) {
    return ajax({
        url: '/storehouse/planPage',
		method: 'GET',
        data
    })
}

// 详情
export function getPlanDetail(id) {
    return ajax({
        url: '/storehouse/storehouseDetail/' + id,
		method: 'GET'
    })
}

export function addPlan(data) {
    return ajax({
        url: '/storehouse/addPlan',
		method: 'POST',
        data
    })
}

export function editPlan(data, id) {
    return ajax({
        url: '/storehouse/updatePlan/' + id,
		method: 'PUT',
        data
    })
}

export function deletePlan(id) {
    return ajax({
        url: '/storehouse/del/' + id,
		method: 'DELETE'
    })
}
